package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DtShoupaiMapper;
import com.ruoyi.system.domain.DtShoupai;
import com.ruoyi.system.service.IDtShoupaiService;

/**
 * 党员受牌Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-18
 */
@Service
public class DtShoupaiServiceImpl implements IDtShoupaiService 
{
    @Autowired
    private DtShoupaiMapper dtShoupaiMapper;

    /**
     * 查询党员受牌
     * 
     * @param num 党员受牌主键
     * @return 党员受牌
     */
    @Override
    public DtShoupai selectDtShoupaiByNum(String num)
    {
        return dtShoupaiMapper.selectDtShoupaiByNum(num);
    }

    /**
     * 查询党员受牌列表
     * 
     * @param dtShoupai 党员受牌
     * @return 党员受牌
     */
    @Override
    public List<DtShoupai> selectDtShoupaiList(DtShoupai dtShoupai)
    {
        return dtShoupaiMapper.selectDtShoupaiList(dtShoupai);
    }

    /**
     * 新增党员受牌
     * 
     * @param dtShoupai 党员受牌
     * @return 结果
     */
    @Override
    public int insertDtShoupai(DtShoupai dtShoupai)
    {
        return dtShoupaiMapper.insertDtShoupai(dtShoupai);
    }

    /**
     * 修改党员受牌
     * 
     * @param dtShoupai 党员受牌
     * @return 结果
     */
    @Override
    public int updateDtShoupai(DtShoupai dtShoupai)
    {
        return dtShoupaiMapper.updateDtShoupai(dtShoupai);
    }

    /**
     * 批量删除党员受牌
     * 
     * @param nums 需要删除的党员受牌主键
     * @return 结果
     */
    @Override
    public int deleteDtShoupaiByNums(String[] nums)
    {
        return dtShoupaiMapper.deleteDtShoupaiByNums(nums);
    }

    /**
     * 删除党员受牌信息
     * 
     * @param num 党员受牌主键
     * @return 结果
     */
    @Override
    public int deleteDtShoupaiByNum(String num)
    {
        return dtShoupaiMapper.deleteDtShoupaiByNum(num);
    }
}
